//
//  ContentView.swift
//  TextDemo
//
//  Created by jerry on 2020/6/23.
//  Copyright © 2020 jerry. All rights reserved.
//

import SwiftUI

struct ContentView: View {
    var body: some View {
        VStack()
            {
                Text("普通文本1")
                Text("加粗文本").bold()
                Text("斜体文本").italic()
                Text("下划线").underline()
                Text("删除文本").strikethrough()
                Text("大号文本").font(.system(size: 30))
                Text("普通文本").foregroundColor(Color.red)
                Text("文本背景").background(Color.orange)
        }
    }
}

struct ContentView_Previews: PreviewProvider {
    static var previews: some View {
        ContentView()
    }
}
